/**
 *  Argon is a clean HTML5 theme for LuCI. It is based on luci-theme-material and Argon Template
 *
 *  luci-theme-argon
 *      Copyright 2020 Jerryk <jerrykuku@gmail.com>
 *
 *  Have a bug? Please create an issue here on GitHub!
 *      https://github.com/jerrykuku/luci-theme-argon/issues
 *
 *  luci-theme-bootstrap:
 *      Copyright 2008 Steven Barth <steven@midlink.org>
 *      Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
 *      Copyright 2012 David Menting <david@nut-bolt.nl>
 *
 *  MUI:
 *      https://github.com/muicss/mui
 *
 *  luci-theme-material:
 *      https://github.com/LuttyYang/luci-theme-material/
 *
 *  Agron Theme
 *	    https://demos.creative-tim.com/argon-dashboard/index.html
 *
 *  Login background
 *      https://unsplash.com/
 *
 *  Licensed to the public under the Apache License 2.0
 */

body {
  background: #000000;
  color: #cccccc;
}

.login-page .login-container .login-form {
  background-color: #000000;
}

.login-page .login-container .login-form .brand {
  color: #adb5bd;
}

.login-page .login-container .login-form .form-login .input-group::before {
  color: #adb5bd;
}

.login-page .login-container .login-form .form-login .input-group input {
  background-color: transparent !important;
  color: #adb5bd;
  border-bottom: #adb5bd 1px solid !important;
  border-radius: 0 !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  box-shadow: none;
}

.login-page .login-container .login-form .form-login .cbi-button-apply {
  background-color: #483d8b !important;
  background-color: var(--dark-primary) !important;
}

.login-page .login-container .login-form .form-login .cbi-button-apply:hover,
.login-page .login-container .login-form .form-login .cbi-button-apply:focus {
  opacity: 0.9;
}

header::after {
  background-color: #000000 !important;
}

.main .main-left {
  background-color: #000000 !important;
  box-shadow: 0 0 0.5rem 0 rgba(0, 0, 0, 0.15);
}

.main .main-left .sidenav-header .brand {
  color: #ccc;
}

.main .main-left .nav .slide .slide-menu .active a {
  color: #cccccc;
}

.main .main-left .nav .slide .slide-menu .active a::after {
  background-color: #cccccc !important;
}

.main .main-left .nav .slide .slide-menu li a {
  color: #cccccc;
}

.main .main-left .nav .slide .slide-menu li a:hover {
  background: none !important;
}

.main .main-left .nav .slide .menu.active {
  background-color: #483d8b !important;
  background-color: var(--dark-primary) !important;
  color: #cccccc !important;
}

.main .main-left .nav>li>a:first-child.active {
  background: #483d8b;
  background: var(--dark-primary)
}

.main .main-left .nav li.slide .slide-menu li::after {
  background: #483d8b;
  background: var(--dark-primary)
}

.main .main-left .nav .slide .menu.active a::after {
  background-color: #cccccc !important;
}

.main .main-left .nav li a {
  color: #cccccc !important;
}

.main .main-left .nav li a:hover {
  background-color: #483d8b !important;
  background-color: var(--dark-primary) !important;
  color: #cccccc !important;
}

.main .main-left::-webkit-scrollbar-thumb {
  background-color: #0a0f17 !important;
}

.main .main-left::-webkit-scrollbar-track {
  background-color: #333;
}

::-webkit-scrollbar-thumb {
  box-shadow: inset 0 0 0 5px #363636;
}

::-webkit-scrollbar-thumb:window-inactive {
  box-shadow: inset 0 0 0 5px #363636;
}

.main .main-right {
  background-color: #000000;
  background-attachment: fixed;
}

h2 {
  color: #ccc;
  background: #242424;
  border-radius: 0.575rem;
}

h3 {
  color: #ccc;
  border-bottom: 0;
  background: #242424;
}

h4 {
  color: #808dad;
}

a:-webkit-any-link {
  color: -webkit-link;
  cursor: pointer;
  color: #483d8b;
  color: var(--dark-primary);
}

input:-webkit-autofill {
  background-color: #3c3c3c !important;
}

.cbi-value-field .cbi-input-apply,
.cbi-button-apply,
.cbi-button-edit {
  color: #fff !important;
  background-color: #483d8b !important;
  background-color: var(--dark-primary) !important;
  border-color: #483d8b !important;
  border-color: var(--dark-primary) !important;
}

.cbi-section em {
  color: #ccc;
}

header.bg-primary {
  background-color: #000000 !important;
}

.cbi-map-descr {
  color: #ccc;
}

.cbi-section {
  background: none;
  box-shadow: 0 0 0.5rem 0 rgba(0, 0, 0, 0.35);
}

.panel-title {
  color: #ccc;
  background-color: #000000;
  border-bottom: 0px;
}

div>table>tbody>tr:nth-of-type(2n),
div>.table>.tr:nth-of-type(2n) {
  background-color: #0000;
}

table>tbody>tr>td,
table>tfoot>tr>td,
table>thead>tr>td {
  color: #ccc;
}

fieldset>table>tbody>tr:nth-of-type(2n) {
  background-color: #242424;
  border-radius: 0.575rem;
}

table>tbody>tr>td,
table>tfoot>tr>td,
table>thead>tr>td {
  border-top: 1px solid #242424;
}

#swaptotal>div>div,
#swapfree>div>div,
#memfree>div>div,
#membuff>div>div,
#conns>div>div,
#memtotal>div>div {
  background-color: #32325d !important;
}

#swaptotal>div>div>div>small,
#swapfree>div>div>div>small,
#memfree>div>div>div>small,
#membuff>div>div>div>small,
#conns>div>div>div>small,
#memtotal>div>div>div>small {
  color: #ccc !important;
}

.node-system-packages>.main .cbi-section-node:first-child .cbi-value-last {
  line-height: 1.8em;
}

.node-system-packages>.main .cbi-section-node:first-child .cbi-value-last div[style="margin:3px 0; width:300px; height:10px; border:1px solid #000000; background-color:#80C080"] {
  border: 1px solid #999999 !important;
  background-color: transparent !important;
}

.node-system-packages>.main .cbi-section-node:first-child .cbi-value-last div[style="margin:3px 0; width:300px; height:10px; border:1px solid #000000; background-color:#80C080"] div {
  background-color: #32325d !important;
}

tr>td,
tr>th,
.tr>.td,
.tr>.th,
.cbi-section-table-row::before,
#cbi-wireless>#wifi_assoclist_table>.tr:nth-child(2) {
  border-top: 0;
}

.cbi-rowstyle-2 {
  background-color: #242424;
}

.cbi-rowstyle-1 {
  background-color: #0a0f17;
}

.cbi-section>h3:first-child,
.panel-title,
h3 {
  color: #ccc;
  border-bottom: 0;
  border-radius: 0.575rem;
}

.cbi-progressbar {
  border: thin solid #5c5c5c;
  background: transparent;
  color: #cccccc;
}

.cbi-progressbar div {
  background-color: var(--dark-primary) !important;
  /*background: -webkit-linear-gradient(45deg,#4600da 10%,#b38fff);*/
}

.cbi-section-table .cbi-section-table-titles .cbi-section-table-cell {
  background-color: #1e1e1f;
}

.cbi-button {
  color: #ccc;
  background-color: #483d8b;
  background-color: var(--dark-primary);
}

.cbi-section-node {
  background: none;
  border-radius: 0 0 0.375rem 0.375rem;
  padding: 0rem;
}

abbr {
  color: #5e72e4;
}

div>table>tbody>tr:nth-of-type(2n),
div>.table>.tbody>.tr:nth-of-type(2n) {
  background-color: #0a0f17;
}

#content_syslog {
  box-shadow: 0 0 0.5rem 0 rgba(0, 0, 0, 0.35);
}

#syslog {
  color: #ccc;
  background-color: #242424;
}

#iwsvg,
#iwsvg2,
#bwsvg {
  overflow: hidden;
  box-shadow: 0 0 0.5rem 0 rgba(0, 0, 0, 0.35);
  background-color: #000000 !important;
}

.tabs {
  background-color: #242424;
}

.tabs>li[class~="active"]>a {
  color: #ccc;
}

.tabs>li[class~="active"],
.tabs>li:hover {
  border-bottom: 0.18751rem solid #483d8b;
  border-bottom: 0.18751rem solid var(--dark-primary);
  color: #ccc;
  background-color: #000000;
}

.cbi-tabmenu>li>a,
.tabs>li>a {
  color: #ccc;
}

.cbi-tabmenu>li>a:hover,
.tabs>li>a:hover {
  color: #ccc;
}

.cbi-tabmenu>li {
  background: #242424;
}

.cbi-tabmenu li[class~="cbi-tab"] a {
  color: #ccc;
}

.cbi-tabmenu>li:hover {
  color: #ccc;
  background: #2d2d2d;
}

.cbi-tabmenu>li[class~="cbi-tab"] {
  background-color: #242424;
}

.cbi-tabcontainer>.cbi-value:nth-of-type(2n) {
  background-color: #242424;
}

.cbi-value-title {
  color: #ccc;
}

select,
input {
  color: #ccc;
  background-color: transparent !important;
  border: 1px solid #0a0f17;
  box-shadow: none;
}

select:not([multiple="multiple"]):focus,
input:focus {
  border-color: #483d8b !important;
  border-color: var(--dark-primary) !important;
  outline: 0;
}

select {
  background-color: #000000 !important;
}

#cbi-dropbear h2,
#cbi-dropbear .cbi-map-descr,
#cbi-dropbear .cbi-map-descr abbr,
#cbi-rc h2,
#cbi-rc .cbi-map-descr,
#cbi-distfeedconf h2,
#cbi-distfeedconf .cbi-map-descr,
#cbi-customfeedconf h2,
#cbi-customfeedconf .cbi-map-descr,
#cbi-download h2,
#cbi-filelist h2 {
  color: #ccc !important;
}

.cbi-value-field>ul>li .ifacebadge {
  background-color: #3c3c3c;
}

.cbi-section-descr {
  color: #ccc;
}

.cbi-input-textarea {
  background-color: #000000;
  color: #ccc;
}

.cbi-section-remove:nth-of-type(2n),
.cbi-section-node:nth-of-type(2n) {
  background-color: #000000;
}

.node-system-packages>.main table tr td:nth-last-child(1) {
  color: #ccc;
}

.cbi-section-node .cbi-value {
  padding: 1rem 1rem 0.3rem 1rem;
}

.ifacebox {
  background-color: none;
  border: 1px solid #000000;
  box-shadow: none;
}

.ifacebox-head {
  color: #666;
  border-radius: 5px 5px 0px 0px;
}

.ifacebox-body {
  background-color: #000000;
  border-radius: 0px 0px 5px 5px;
}

.zonebadge strong {
  color: #333;
}

.zonebadge>.ifacebadge {
  background-color: #3c3c3c;
}

div.cbi-value var,
td.cbi-value-field var {
  color: #5e72e4;
}

#diag-rc-output>pre {
  color: #ccc;
  background-color: #000000;
}

.node-services-vssr .block {
  background-color: #3c3c3c !important;
  box-shadow: 0 0 0.5rem 0 rgba(0, 0, 0, 0.35);
}

.node-services-vssr .block h4 {
  color: #ccc !important;
}

.node-services-vssr .status-bar {
  color: #ccc;
  box-shadow: 0 0 0.5rem 0 rgba(0, 0, 0, 0.35);
  background-color: #000000;
}

.node-services-vssr .cbi-section-table-row {
  color: #ccc;
  background-color: #3c3c3c !important;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.35);
}

.node-services-vssr .cbi-section-table-row.fast {
  background: #483d8b !important;
  background: var(--dark-primary) !important;
  color: #fff;
}

.node-services-vssr .ssr-button {
  color: #ccc;
}

.node-services-vssr .incon:nth-child(2) {
  border-right: #000000 1px solid;
}

#xhr_poll_status>.label.success {
  color: #ccc !important;
  background-color: darkolivegreen !important;
}

.notice {
  background-color: #483d8b !important;
  background-color: var(--dark-primary) !important;
}

.cbi-input-find,
.cbi-input-save,
.cbi-button-add,
.cbi-button-save,
.cbi-button-find,
.cbi-input-reload,
.cbi-button-reload {
  color: #fff !important;
  background: #5e72e4 !important;
  background: var(--dark-primary) !important;
  border-color: #0000 !important;
}

.cbi-button-reset,
.cbi-input-remove {
  color: #fff !important;
  background-color: var(--red) !important;
  border-color: var(--red) !important;
}

.cbi-page-actions .cbi-button-apply,
.cbi-section-actions .cbi-button-edit,
.cbi-button-edit.important,
.cbi-button-apply.important,
.cbi-button-reload.important,
.cbi-button-action.important {
  border: 1px #483d8b solid !important;
  border: 1px var(--dark-primary) solid !important;
}

.btn[value="Dismiss"],
.cbi-button[value="Terminate"],
.cbi-button[value="Reset"],
.cbi-button[value="Disabled"],
.cbi-button[onclick^="iface_reconnect"],
.cbi-button[onclick="handleReset(event)"],
.cbi-button-neutral[value="Disable"] {
  font-weight: normal;
  color: #fff;
  border: thin solid var(--red) !important;
  background-color: var(--red) !important;
}

fieldset[id^="cbi-apply-"] {
  background-color: #333333;
}

#detail-bubble>div {
  border: 1px solid #ccc;
  border-radius: 2px;
  padding: 5px;
  background: #252525;
}

div[style*="display:grid;grid-template-columns:repeat"] .ifacebox {
  border-radius: 5px;
}

.cbi-tooltip {
  box-shadow: 0 0 2px #8b8b8b;
  border-radius: 3px;
  background: #242424;
  color: #c0c0c0;
}

.ifacebox-head {
  padding: 0.25em;
  border-radius: 5px 5px 0px 0px;
  color: #fff;
}

.ifacebox-head.active {
  background-color: var(--dark-primary) !important;
}

.ifacebox-head:not(#cbi-network-interface .ifacebox-head) {
  background: var(--dark-primary) !important;
}

header .fill .status span[data-style="active"] {
  color: #ccc !important;
  background-color: #242424 !important;
}

#cbi-wireless .td,
#cbi-network .tr:first-child>.td,
.table[width="100%"]>.tr:first-child>.td,
[data-page="admin-network-diagnostics"] .tr>.td,
.tr.table-titles>.th,
.tr.cbi-section-table-titles>.th {
  background-color: #242424;
  /* border-bottom: black 1px solid !important; */
}

.network-status-table .ifacebox-body .ifacebadge {
  background-color: #242424;
  border-bottom: 0;
  box-shadow: none;
  border-radius: 0.575rem;
}

td>.ifacebadge,
.td>.ifacebadge {
  background-color: #000000;
  border: 0;
}

.btn.danger,
.cbi-section-remove>.cbi-button,
.cbi-button-remove,
.cbi-button-reset,
.cbi-button-negative,
.cbi-button[value="Stop"],
.cbi-button[value="Kill"],
.cbi-button[onclick="reboot(this)"],
.cbi-button-neutral[value="Restart"] {
  border: thin solid var(--red) !important;
  background-color: var(--red) !important;
}

.cbi-section,
.cbi-section-error,
#iptables,
.Firewall form,
#cbi-network>.cbi-section-node,
#cbi-wireless>.cbi-section-node,
#cbi-wireless>#wifi_assoclist_table,
[data-tab-title],
[data-page^="admin-system-admin"]:not(.node-main-login) .cbi-map:not(#cbi-dropbear),
[data-page="admin-system-opkg"] #maincontent>.container {
  background: #242424 !important;
  /* box-shadow: 0 0 0.5rem 0 rgba(0, 0, 0, 0.35); */
  border-radius: 0.575rem;
}

.cbi-section,
.cbi-section-error,
#iptables,
.Firewall form,
#cbi-network>.cbi-section-node,
#cbi-wireless>.cbi-section-node,
#cbi-wireless>#wifi_assoclist_table,
[data-tab-title],
[data-page^="admin-system-admin"]:not(.node-main-login) .cbi-map:not(#cbi-dropbear),
[data-page="admin-system-opkg"] #maincontent>.container {
  box-shadow: unset;
}

div[style="width:100%;height:300px;border:1px solid #000;background:#fff"] {
  background: transparent !important;
}

[data-page="admin-system-admin"] .cbi-map h2,
[data-page="admin-system-admin-password"] .cbi-map h2,
[data-page="admin-system-admin"] .cbi-map .cbi-map-descr,
[data-page="admin-system-admin-password"] .cbi-map .cbi-map-descr {
  color: #ccc;
}

[data-page="admin-system-flash"] .modal label>input[type="checkbox"] {
  /* top: -0.35rem; */
}

[data-page="admin-system-flash"] .modal .btn {
  white-space: normal !important;
  background-color: darkseagreen;
}

[data-page="admin-system-flash"] .modal .alert-message {
  background-color: transparent !important;
}

[data-page="admin-system-flash"] .modal .danger {
  border: thin solid var(--red) !important;
  background-color: var(--red) !important;
}

.cbi-value input[type="password"]+.cbi-button-neutral {
  background-color: #483d8b !important;
  background-color: var(--dark-primary) !important;
}

.btn,
button,
select,
input,
.cbi-dropdown {
  border: 1px solid #3c3c3c !important;
}

.cbi-dropdown .preview {
  color: #ccc;
}

.cbi-section-table-row {
  background-color: #000000 !important;
}

.modal {
  background-color: #242424;
}

.cbi-button-positive {
  color: #fff !important;
  background-color: darkolivegreen !important;
}

[data-page="admin-system-flash"] legend {
  color: #ccc;
}

.logout:before {
  color: #adb5bd !important;
}

.cbi-dropdown[open] {
  border-color: #483d8b !important;
  border-color: var(--dark-primary) !important;
}

.cbi-dropdown[open]>ul.dropdown {
  background: #242424 !important;
  color: #ccc !important;
  box-shadow: none;
  border: 1px solid #3c3c3c !important;
}

.cbi-dropdown[open]>ul.dropdown li {
  color: #ccc;
  border-bottom: 1px solid #3c3c3c !important;
}

.cbi-dropdown[open]>ul.dropdown>li[selected] {
  background-color: #483d8b !important;
  background-color: var(--dark-primary) !important;
  border-bottom: 1px solid #3c3c3c !important;
}

.cbi-dropdown[open]>ul.dropdown>li.focus {
  background: #483d8b;
  background: var(--dark-primary);
  outline: none;
}

.cbi-dropdown[open]>ul.dropdown>li:hover {
  background-color: #000000; /* 鼠标悬停时的背景色块 */
}

.ifacebadge {
  background-color: #000000;
}

.cbi-dynlist>.item>span {
  border: 1px solid #3c3c3c !important;
}

.cbi-page-actions .cbi-button-apply,
.cbi-section-actions .cbi-button-edit,
.cbi-button-edit,
.cbi-button-apply,
.cbi-button-reload,
.cbi-button-action,
.cbi-button[value="Submit"],
.cbi-button[value="Upload"],
.cbi-button[value$="Apply"],
.cbi-button[onclick="addKey(event)"] {
  background: #483d8b !important;
  background: var(--dark-primary) !important;
}

.btn.primary,
.cbi-page-actions .cbi-button-save,
.cbi-page-actions .cbi-button-apply+.cbi-button-save,
.cbi-button-add,
.cbi-button-save,
.cbi-button-positive,
.cbi-button-link,
.cbi-button[value="Enable"],
.cbi-button[value="Scan"],
.cbi-button[value^="Back"],
.cbi-button-neutral[onclick="handleConfig(event)"] {
  background: #483d8b;
  background: var(--dark-primary);
}

[data-page="admin-system-opkg"] h2 {
  color: #ccc !important;
}

.ifacebadge a {
  color: #4caf50;
}

textarea {
  background-color: #000000;
  color: #cccccc;
}

#diag-rc-output>pre,
#command-rc-output>pre,
[data-page="admin-services-wol"] .notice code {
  background-color: #242424;
}

.commandbox {
  width: 24% !important;
  margin: 10px 0 0 10px !important;
  padding: 0.5rem 1rem;
  border-bottom: thin solid rgb(0 0 0 / 44%);
  border-radius: 0.375rem;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0%), 0 1px 2px rgba(0, 0, 0, 0.05);
  background: #242424;
}

.commandbox code {
  background: #000000;
  color: beige;
}

.commandbox h3 {
  background: rgb(68 73 80 / 52%);
}

code {
  background: #4e9150;
}

.modal>pre,
.modal>textarea {
  color: #ffc100;
  background-color: #242424;
}

.alert-message.fade-in {
  background-color: #282b3b;
}

.cbi-section .cbi-section-remove:nth-of-type(2n),
.container>.cbi-section .cbi-section-node:nth-of-type(2n) {
  background-color: #000000;
}

.main .main-left .nav li.slide .slide-menu .active::after {
  background-color: var(--dark-primary) !important;
}

tr.cbi-section-table-row {
  background-color: #242424 !important;
}

@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
  .login-page .login-container .login-form {
    -webkit-backdrop-filter: blur(var(--blur-radius-dark));
    backdrop-filter: blur(var(--blur-radius-dark));
    background-color: rgba(0, 0, 0, var(--blur-opacity-dark));
  }
}

@media screen and (max-width: 480px) {
  .node-status-iptables>.main div>.cbi-map>form {
    background-color: #000000;
    box-shadow: 0 0 0.5rem 0 rgba(0, 0, 0, 0.35);
  }
}

@media screen and (max-width: 1152px) {
  .tr.placeholder {
    border-bottom: thin solid #ddd0;
  }
}

@media screen and (max-width: 1280px) {

  .tr[data-title]::before,
  .tr.cbi-section-table-titles.named::before {
    background: #0000;
  }
}

.uci-change-list var ins,
.uci-change-list var del {
  color: #3c3c3c;
}

#view>.spinning {
  background: #242424;
}

.cbi-rowstyle-2 {
  background-color: #0000;
}

.cbi-section-remove:nth-of-type(2n),
.cbi-section-node:nth-of-type(2n) {
  background-color: #0000;
}

div>table>tbody>tr:nth-of-type(2n),
div>.table>.tbody>.tr:nth-of-type(2n) {
  background-color: #0000;
}

#cbi-wireless .td,
#cbi-network .tr:first-child>.td,
.table[width="100%"]>.tr:first-child>.td,
[data-page="admin-network-diagnostics"] .tr>.td,
.tr.table-titles>.th,
.tr.cbi-section-table-titles>.th {
  background-color: #0000;
  /* border-bottom: black 1px solid !important; */
}

.uci-change-list del,
.uci-change-legend-label del,
.uci-change-list ins,
.uci-change-legend-label ins {
  color: #242424;
}

table,
.table {
  background-color: #242424;
  border-radius: 0.575rem;
  border-collapse: revert;
}

.cbi-section .cbi-section-remove:nth-of-type(2n),
.container>.cbi-section .cbi-section-node:nth-of-type(2n) {
  background-color: #242424;
  border-radius: 0 0 0.575 0.575rem;
}

.cbi-section[id] .cbi-section-remove:nth-of-type(4n+3),
.cbi-section[id] .cbi-section-node:nth-of-type(4n+4) {
  background-color: #242424
}

/* luci-app-filemanager */
#file-manager-container button#go-button {
  background-color: #242424 !important;
}

#file-manager-container #status-bar {
  background-color: #242424 !important;
  border: 1px solid #5c5c5c !important;
}

#file-list-container {
  border: 1px solid #24242400 !important;
}

#file-list-container thead {
  background-color: lightblue !important;
}

#file-list-container th {
  background-color: #1c2027 !important;
  border-right: 1px solid #515151 !important;
}

#file-list-container td {
  border-right: 1px solid #515151 !important;
}

#file-list-container tr:hover {
  background-color: #1e232b !important;
}

#file-manager-container .btn, #file-manager-container button,
#file-manager-container select, #file-manager-container input,
#file-manager-container .cbi-dropdown {
  border: 1px solid #646464 !important;
}

#file-manager-container .resizer::after {
  background: none !important;
}

/* luci-mod-dashboard */
.Dashboard .dashboard-bg {
  background-color: #1b212a !important;
}

.Dashboard h3 {
  color: #cccccc !important;
  border-radius: 0 0 16px 16px;
}

.Dashboard:not(.some-other-class) {
  color: #cccccc !important;
}

.Dashboard .title {
  background-color: #000000 !important;
  border-radius: 16px;
}

.Dashboard .cbi-rowstyle-1 {
  background-color: #1b212a;
}
